# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-jsonrpc-server
pkgver=0.4.0
pkgrel=6
pkgdesc="A asynchronous JSON RPC server"
url="https://github.com/palantir/python-jsonrpc-server"
arch="noarch"
license="MIT"
depends="python3 py3-ujson"
checkdepends="py3-pytest py3-mock"
makedepends="py3-setuptools python3-dev py3-wheel py3-python-versioneer"
subpackages="$pkgname-pyc"
source="https://github.com/palantir/python-jsonrpc-server/archive/$pkgver/python-jsonrpc-server-$pkgver.tar.gz"
builddir="$srcdir/python-jsonrpc-server-$pkgver"

prepare() {
	default_prepare

	# unvendor old versioneer
	rm -f versioneer.py
}

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
3b7f4ced4b7469fb10c2510061b5684fecfcd10341a55e695d18048e40d24ac903bfa850afa2970b1ca0a8c0e486c4a716d69f371cb9e2470ff321a236c66944  python-jsonrpc-server-0.4.0.tar.gz
"
